package me.ivps.android.weibo.dao;

/**
 * URL 帮助类
 * 
 * User: qii Date: 12-7-28
 */
public class URLHelper {
    
    public static final String APP_KEY = "2680331990";                                      // "1065511513";
    public static final String APP_SECRET = "52be19c56e1981d4ea0b9ba91a948d2f";             // "df428e88aae8bd31f20481d149c856ed";
    public static final String DIRECT_URL = "https://api.weibo.com/oauth2/default.html";
    
    // base url
    /**
     * 基础 URL
     */
    private static final String URL_SINA_WEIBO = "https://api.weibo.com/2/";
    
    // login
    /**
     * 用户信息获取
     */
    public static final String UID = URL_SINA_WEIBO + "account/get_uid.json";
    /**
     * 认证&授权 URL
     */
    public static final String URL_OAUTH2_ACCESS_AUTHORIZE = "https://api.weibo.com/oauth2/authorize";
    
    // main timeline
    public static final String FRIENDS_TIMELINE = URL_SINA_WEIBO
            + "statuses/friends_timeline.json";
    public static final String COMMENTS_MENTIONS_TIMELINE = URL_SINA_WEIBO
            + "comments/mentions.json";
    public static final String STATUSES_MENTIONS_TIMELINE = URL_SINA_WEIBO
            + "statuses/mentions.json";
    public static final String COMMENTS_TO_ME_TIMELINE = URL_SINA_WEIBO
            + "comments/to_me.json";
    public static final String COMMENTS_BY_ME_TIMELINE = URL_SINA_WEIBO
            + "comments/by_me.json";
    public static final String BILATERAL_TIMELINE = URL_SINA_WEIBO
            + "statuses/bilateral_timeline.json";
    public static final String TIMELINE_RE_CMT_COUNT = URL_SINA_WEIBO
            + "statuses/count.json";
    
    // group timeline
    public static final String FRIENDSGROUP_INFO = URL_SINA_WEIBO
            + "friendships/groups.json";
    public static final String FRIENDSGROUP_TIMELINE = URL_SINA_WEIBO
            + "friendships/groups/timeline.json";
    
    // general timeline
    public static final String COMMENTS_TIMELINE_BY_MSGID = URL_SINA_WEIBO
            + "comments/show.json";
    public static final String REPOSTS_TIMELINE_BY_MSGID = URL_SINA_WEIBO
            + "statuses/repost_timeline.json";
    
    // user profile
    public static final String STATUSES_TIMELINE_BY_ID = URL_SINA_WEIBO
            + "statuses/user_timeline.json";
    public static final String USER_SHOW = URL_SINA_WEIBO + "users/show.json";
    public static final String USER_DOMAIN_SHOW = URL_SINA_WEIBO
            + "users/domain_show.json";
    
    // browser
    public static final String STATUSES_SHOW = URL_SINA_WEIBO
            + "statuses/show.json";
    
    // short url
    public static final String SHORT_URL_SHARE_COUNT = URL_SINA_WEIBO
            + "short_url/share/counts.json";
    public static final String SHORT_URL_SHARE_TIMELINE = URL_SINA_WEIBO
            + "short_url/share/statuses.json";
    
    public static final String MID_TO_ID = URL_SINA_WEIBO
            + "statuses/queryid.json";
    
    // send weibo
    public static final String STATUSES_UPDATE = URL_SINA_WEIBO
            + "statuses/update.json";
    public static final String STATUSES_UPLOAD = URL_SINA_WEIBO
            + "statuses/upload.json";
    public static final String STATUSES_DESTROY = URL_SINA_WEIBO
            + "statuses/destroy.json";
    
    public static final String REPOST_CREATE = URL_SINA_WEIBO
            + "statuses/repost.json";
    
    public static final String COMMENT_CREATE = URL_SINA_WEIBO
            + "comments/create.json";
    public static final String COMMENT_DESTROY = URL_SINA_WEIBO
            + "comments/destroy.json";
    public static final String COMMENT_REPLY = URL_SINA_WEIBO
            + "comments/reply.json";
    
    // favourite
    public static final String MYFAV_LIST = URL_SINA_WEIBO + "favorites.json";
    
    public static final String FAV_CREATE = URL_SINA_WEIBO
            + "favorites/create.json";
    public static final String FAV_DESTROY = URL_SINA_WEIBO
            + "favorites/destroy.json";
    
    // relationship
    public static final String FRIENDS_LIST_BYID = URL_SINA_WEIBO
            + "friendships/friends.json";
    public static final String FOLLOWERS_LIST_BYID = URL_SINA_WEIBO
            + "friendships/followers.json";
    
    public static final String FRIENDSHIPS_CREATE = URL_SINA_WEIBO
            + "friendships/create.json";
    public static final String FRIENDSHIPS_DESTROY = URL_SINA_WEIBO
            + "friendships/destroy.json";
    public static final String FRIENDSHIPS_FOLLOWERS_DESTROY = URL_SINA_WEIBO
            + "friendships/followers/destroy.json";
    
    // gps location info
    public static final String GOOGLELOCATION = "http://maps.google.com/maps/api/geocode/json";
    
    // search
    public static final String AT_USER = URL_SINA_WEIBO
            + "search/suggestions/at_users.json";
    public static final String TOPIC_SEARCH = URL_SINA_WEIBO
            + "search/topics.json";
    
    // topic
    public static final String TOPIC_USER_LIST = URL_SINA_WEIBO + "trends.json";
    public static final String TOPIC_FOLLOW = URL_SINA_WEIBO
            + "trends/follow.json";
    public static final String TOPIC_DESTROY = URL_SINA_WEIBO
            + "trends/destroy.json";
    public static final String TOPIC_RELATIONSHIP = URL_SINA_WEIBO
            + "trends/is_follow.json";
    
    // unread messages
    public static final String UNREAD_COUNT = URL_SINA_WEIBO
            + "remind/unread_count.json";
    public static final String UNREAD_CLEAR = URL_SINA_WEIBO
            + "remind/set_count.json";
    
    // remark
    public static final String REMARK_UPDATE = URL_SINA_WEIBO
            + "friendships/remark/update.json";
    
    public static final String TAGS = URL_SINA_WEIBO + "tags.json";
    
    public static final String EMOTIONS = URL_SINA_WEIBO + "emotions.json";
    
    // group
    public static final String GROUP_MEMBER_LIST = URL_SINA_WEIBO
            + "friendships/groups/listed.json";
    public static final String GROUP_MEMBER_ADD = URL_SINA_WEIBO
            + "friendships/groups/members/add.json";
    public static final String GROUP_MEMBER_DESTROY = URL_SINA_WEIBO
            + "friendships/groups/members/destroy.json";
    
    public static final String GROUP_CREATE = URL_SINA_WEIBO
            + "friendships/groups/create.json";
    public static final String GROUP_DESTROY = URL_SINA_WEIBO
            + "friendships/groups/destroy.json";
    public static final String GROUP_UPDATE = URL_SINA_WEIBO
            + "friendships/groups/update.json";
    
    // nearby
    public static final String NEARBY_USER = URL_SINA_WEIBO
            + "place/nearby/users.json";
    public static final String NEARBY_STATUS = URL_SINA_WEIBO
            + "place/nearby_timeline.json";
    
    // map
    public static final String STATIC_MAP = URL_SINA_WEIBO
            + "location/base/get_map_image.json";
    
    /**
     * black magic
     */
    
    // oauth2 and refresh token
    public static final String OAUTH2_ACCESS_TOKEN = URL_SINA_WEIBO
            + "oauth2/access_token";
    
    // search
    public static final String STATUSES_SEARCH = URL_SINA_WEIBO
            + "search/statuses.json";
    public static final String USERS_SEARCH = URL_SINA_WEIBO
            + "search/users.json";
    
    // direct message
    public static final String DM_RECEIVED = URL_SINA_WEIBO
            + "direct_messages.json";
    public static final String DM_SENT = URL_SINA_WEIBO
            + "direct_messages/new.json";
    public static final String DM_USERLIST = URL_SINA_WEIBO
            + "direct_messages/user_list.json";
    public static final String DM_CONVERSATION = URL_SINA_WEIBO
            + "direct_messages/conversation.json";
    public static final String DM_CREATE = URL_SINA_WEIBO
            + "direct_messages/new.json";
    public static final String DM_DESTROY = URL_SINA_WEIBO
            + "direct_messages/destroy.json";
    public static final String DM_BATH_DESTROY = URL_SINA_WEIBO
            + "direct_messages/destroy_batch";
    
    // edit my profile
    public static final String MYPROFILE_EDIT = URL_SINA_WEIBO
            + "account/profile/basic_update.json";
    public static final String AVATAR_UPLOAD = URL_SINA_WEIBO
            + "account/avatar/upload.json";
}
